package com.icangya.DAO.impl;

import com.icangya.DAO.IFbMoodImgDAO;
import com.icangya.domain.FbMoodImg;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class FbMoodImgDAOImpl  extends BaseDAO<FbMoodImg> implements IFbMoodImgDAO {


    @Override
    public List<FbMoodImg> selectFbMoodImgsByMoodId(Long id) {

        String hql=" FROM FbMoodImg fbmoodimg where fbmoodimg.moodId = ? ";

        List<FbMoodImg> list = (List<FbMoodImg>) getHibernateTemplate().find(hql,id);

        return list;
    }
}
